package com.zg.autoform.web.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "级联选择器入参", description = "级联选择器入参")
public class CascadeSelectReq {

    /**
     * 当前选择器id
     */
    @ApiModelProperty(value = "当前选择器id")
    @NotNull(message = "当前选择器id不能为空")
    private Long id;

    /**
     * 父选择器id
     */
    @ApiModelProperty(value = "父选择器id")
    @NotNull(message = "父选择器id不能为空")
    private Long parentId;

    /**
     * 父级字段
     */
    @ApiModelProperty(value = "父级字段")
    @NotNull(message = "父级字段不能为空")
    private String parentField;

    /**
     * 关联字段
     */
    @ApiModelProperty(value = "关联字段")
    @NotNull(message = "关联字段不能为空")
    private String relatedField;

}
